package com.zhang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.mapper.ICustomCountMapper;
import com.zhang.pojo.CustomCountBean;
import com.zhang.service.ICustomCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDate;

@Service
@Transactional
public class CustomCountServiceImpl implements ICustomCountService {

    @Autowired
    private ICustomCountMapper customCountMapper;

    @Override
    public IPage<CustomCountBean> findByItemAndPage(Page<CustomCountBean> page, String name, LocalDate start, LocalDate end) {
        return customCountMapper.findByItemAndPage(page, name, start, end);
    }
}
